import Layout from '@/layout'

const resourceManager = {
  path: '/resourceManager',
  component: Layout,
  redirect: '/resourceManager/driverList',
  name: 'resourceManager',
  meta: {
    title: '资源管理',
    icon: 'form',
    roles: ['ORG_USER', 'INDIVIDUAL_USER']
  },
  children: [
    {
      path: '/resourceManager/driverList',
      component: () => import('@/views/resourceManager/driverList.vue'),
      name: 'driverList1',
      meta: { title: '司机管理', roles: ['ORG_USER', 'INDIVIDUAL_USER'] }
    },
    {
      path: '/resourceManager/driver/add',
      component: () => import('@/views/userInfoManage/driver/driverAdd'),
      name: 'driverAdd',
      hidden: true,
      meta: { title: '新增司机', roles: ['ORG_USER', 'INDIVIDUAL_USER'] }
    },
    {
      path: '/resourceManager/driver/detail/:id',
      component: () => import('@/views/userInfoManage/driver/driverDetail'),
      name: 'driverDetail',
      hidden: true,
      meta: { title: '司机详情', roles: ['ORG_USER', 'INDIVIDUAL_USER'] }
    },
    {
      path: '/resourceManager/cargoList',
      component: () => import('@/views/resourceManager/cargoList'),
      name: 'cargoList',
      meta: { title: '货物列表', roles: ['ORG_USER'] }
    },
    {
      path: '/resourceManager/contactsList',
      component: () => import('@/views/resourceManager/contactsList'),
      name: 'contactsList',
      meta: { title: '联系人列表', roles: ['ORG_USER'] }
    },
    {
      path: '/resourceManager/captainList',
      component: () => import('@/views/resourceManager/captainList'),
      name: 'captainList',
      meta: { title: '车队长管理', roles: ['ORG_USER'] }
    },
    {
      path: '/resourceManager/captainList/add',
      component: () => import('@/views/userInfoManage/driverMaster/driverMasterAdd'),
      name: 'captainAdd',
      hidden: true,
      meta: { title: '新增车队长', roles: ['ORG_USER'] }
    },
    {
      path: '/resourceManager/captainList/detail/:id',
      component: () => import('@/views/userInfoManage/driverMaster/driverMasterDetail'),
      name: 'captainDetail',
      hidden: true,
      meta: { title: '车队长详情', roles: ['ORG_USER'] }
    }
  ]
}
export default resourceManager
